package Io;

import java.io.Serializable;

public class Person implements Serializable {
    String name;
    int age;
    String dizhi;

    public Person(){}

    public Person(String name, int age, String dizhi) {
        this.name = name;
        this.age = age;
        this.dizhi = dizhi;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDizhi() {
        return dizhi;
    }

    public void setDizhi(String dizhi) {
        this.dizhi = dizhi;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", dizhi='" + dizhi + '\'' +
                '}';
    }
}
